Module ActiveRecord::Acts::Voteable::ClassMethods
In: vendor/plugins/acts_as_voteable/lib/acts_as_voteable.rb

Methods

Included Modules

ActiveRecord::Acts::Voteable::InstanceMethods

Public Instance methods

[Source]

    # File vendor/plugins/acts_as_voteable/lib/acts_as_voteable.rb, line 57
57:         def acts_as_voteable
58:           has_many :votes, :as => :voteable, :dependent => :destroy
59:           has_many :up_votes, :as => :voteable
60:           has_many :down_votes, :as => :voteable
61:           
62:           extend ActiveRecord::Acts::Voteable::SingletonMethods
63:           include ActiveRecord::Acts::Voteable::InstanceMethods
64:         end

[Validate]